/* ****************************************************************************
 *
 * Copyright (c) Microsoft Corporation. 
 *
 * This source code is subject to terms and conditions of the Microsoft Public License. A 
 * copy of the license can be found in the License.html file at the root of this distribution. If 
 * you cannot locate the  Microsoft Public License, please send an email to 
 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 *
 * You must not remove this notice, or any other, from this software.
 *
 *
 * ***************************************************************************/

using System;
using Microsoft.Scripting.Actions;
using Microsoft.Scripting.Runtime;

namespace Microsoft.Scripting.Ast {
    public static partial class Utils {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
        public static class Action {

            public static Expression Operator(SourceSpan span, ActionBinder binder, Operators op, Type result, params Expression[] arguments) {
                return Expression.Action.Operator(Expression.Annotate(span), binder, op, result, arguments);
            }

            public static Expression DeleteMember(SourceSpan span, ActionBinder binder, string name, params Expression[] arguments) {
                return Expression.Action.DeleteMember(Expression.Annotate(span), binder, name, arguments);
            }
        }
    }
}
